<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            margin: 0px;
            padding: 0px;
        }
        div.outer{
            width: 300px;
            height: 100px;
            border: 1px solid red;
            margin: 0 auto ;
            overflow: hidden;
        }
        div.imgs{
            width: 1500px;
            height: 100px;
            background-color: blue;
        }
        div.imgs div{
            width: 300px;
            height: 100px;
            color: white;
            font-size:35px;
            float: left;
        }
        @keyframes move{
            from{
                margin-left:0px;
            }
            to{
                margin-left: -1500px;
            }
        }
    </style>
</head>
<body>
    <div class="outer">
        <div class="imgs">
            <div style="background: red;">div1</div>
            <div style="background: blue;">div2</div>
            <div style="background: orange;">div3</div>
            <div style="background: green;">div4</div>
            <div style="background: pink;">div5</div>
        </div>
    </div>
</body>
</html>